<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <com1></com1>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        Vue.component("com1", {
            data() {
                return {
                    msg: "com1"
                }
            },
            template: `
            <div>
                {{msg}}
                <button>点击com1</button>
            </div>`,
            methods: {}
        })
        let vm = new Vue({
            el: '#app',
            data: {},
            methods: {}
        });
    </script>
</body>

</html>